package com.nciae.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import javafx.scene.input.DataFormat;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author Guoliyu
 * @since 2022-03-30
 */
public class SecurityQuestion implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 无私拉乱接电线（5分）
     */
    private Integer isWire;

    /**
     * 无违章电器（5分）
     */
    private Integer isElectricAppliance;

    /**
     * 无蜡烛、酒精灯等明火设备（5分）
     */
    private Integer isLight;

    /**
     * 无有毒、有害、易燃、易爆等危险品（5分）
     */
    private Integer isPoisonous;

    /**
     * 无管制刀具、各类仿真枪具等危险器具（5分）
     */
    private Integer isKnife;

    /**
     * 宿舍门窗无悬挂或张贴遮盖物，床铺无帷幔（5分）
     */
    private Integer isBed;

    /**
     * 无电竞椅、台式电脑及影响人员流通的大件家具(5分)
     */
    private Integer isComputer;

    /**
     * 检查时间
     */
    private Date submitTime;

    /**
     * 违规内容
     */
    private String content;

    /**
     * 此次检查是否违规
     */
    private Integer isViolation;

    /**
     * 逻辑删除
     */
    private String isDeleted;

    private String photo;

    @TableField(exist = false)
    private String timeString;

    @TableField(exist = false)
    private Teacher teacher;

    @TableField(exist = false)
    private Hoursemaster hoursemaster;

    @TableField(exist = false)
    private Dormitory dormitory;

    private Long dormitoryId;

    @TableField(exist = false)
    private String rectification;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Integer getIsWire() {
        return isWire;
    }

    public void setIsWire(Integer isWire) {
        this.isWire = isWire;
    }
    public Integer getIsElectricAppliance() {
        return isElectricAppliance;
    }

    public void setIsElectricAppliance(Integer isElectricAppliance) {
        this.isElectricAppliance = isElectricAppliance;
    }
    public Integer getIsLight() {
        return isLight;
    }

    public void setIsLight(Integer isLight) {
        this.isLight = isLight;
    }
    public Integer getIsPoisonous() {
        return isPoisonous;
    }

    public void setIsPoisonous(Integer isPoisonous) {
        this.isPoisonous = isPoisonous;
    }
    public Integer getIsKnife() {
        return isKnife;
    }

    public void setIsKnife(Integer isKnife) {
        this.isKnife = isKnife;
    }
    public Integer getIsBed() {
        return isBed;
    }

    public void setIsBed(Integer isBed) {
        this.isBed = isBed;
    }
    public Integer getIsComputer() {
        return isComputer;
    }

    public void setIsComputer(Integer isComputer) {
        this.isComputer = isComputer;
    }

    public Date getSubmitTime() {
        return submitTime;
    }

    public void setSubmitTime(Date submitTime) {
        this.submitTime = submitTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
    public Integer getIsViolation() {
        return isViolation;
    }

    public void setIsViolation(Integer isViolation) {
        this.isViolation = isViolation;
    }
    public String getIsDeleted() {
        return isDeleted;
    }

    public String getTimeString() {
        return timeString;
    }

    public void setTimeString(Date date) {
        DateFormat df = new SimpleDateFormat("yyyy年MM月dd日");
        this.timeString = df.format(date);
    }

    public String getRectification() {
        return rectification;
    }

    public void setRectification(String rectification) {
        this.rectification = rectification;
    }

    public Long getDormitoryId() {
        return dormitoryId;
    }

    public void setDormitoryId(Long dormitoryId) {
        this.dormitoryId = dormitoryId;
    }

    public void setIsDeleted(String isDeleted) {
        this.isDeleted = isDeleted;
    }

    public Teacher getTeacher() {
        return teacher;
    }

    public void setTeacher(Teacher teacher) {
        this.teacher = teacher;
    }

    public Hoursemaster getHoursemaster() {
        return hoursemaster;
    }

    public void setHoursemaster(Hoursemaster hoursemaster) {
        this.hoursemaster = hoursemaster;
    }

    public Dormitory getDormitory() {
        return dormitory;
    }

    public void setDormitory(Dormitory dormitory) {
        this.dormitory = dormitory;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    @Override
    public String toString() {
        return "SecurityQuestion{" +
                "id=" + id +
                ", isWire=" + isWire +
                ", isElectricAppliance=" + isElectricAppliance +
                ", isLight=" + isLight +
                ", isPoisonous=" + isPoisonous +
                ", isKnife=" + isKnife +
                ", isBed=" + isBed +
                ", isComputer=" + isComputer +
                ", submitTime=" + submitTime +
                ", content='" + content + '\'' +
                ", isViolation=" + isViolation +
                ", isDeleted='" + isDeleted + '\'' +
                ", photo='" + photo + '\'' +
                ", timeString='" + timeString + '\'' +
                ", teacher=" + teacher +
                ", hoursemaster=" + hoursemaster +
                ", dormitory=" + dormitory +
                ", dormitoryId=" + dormitoryId +
                ", rectification='" + rectification + '\'' +
                '}';
    }
}
